//
//  AccountsReceivableListController.swift
//  HuaYun
//
//  Created by enghou on 2018/11/16.
//  Copyright © 2018 xyxorigation. All rights reserved.
//

import UIKit

class AccountsReceivableListController: PotentialProjectViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }
    
    override func path(for name: String) -> String {
        return ShouldGetTheBillList
    }

    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        tableView.deselectRow(at: indexPath, animated: true)
        
        let potential = AccountsReceivableDetailViewController()
        potential.title = "应收账款详情"
        let model = self.source[indexPath.section]
        let id = model.contents?["id"]?.rawString() ?? ""
        
        potential.id = id
        
        self.push(destination: potential)
    }
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
